package com.campus.academic.service;

import com.campus.academic.job.entity.Grades;
import com.baomidou.mybatisplus.extension.service.IService;
import com.campus.academic.job.vo.StudentsGradesVO;
import com.campus.common.result.Result;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 成绩表 服务类
 * </p>
 *
 * @author mwb
 * @since 2024-11-16
 */
public interface IGradesService extends IService<Grades> {


    /**
     * 查看某门考试的学生成绩
     */
    List<StudentsGradesVO> getGrade(Integer courseId);

    /**
     * 录入学生成绩
     */
    List<StudentsGradesVO> inputGrades(Integer courseId, List<BigDecimal> examScores, List<BigDecimal> usualScores);

    /**
     * 学生查看成绩
     */
    Result getStuGrades();
}
